<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:useBean id="JO" class="com.fann.Join" scope="session"></jsp:useBean>

<%
String action = request.getParameter("acttype");
String nName;
if (action.equals("joinAdd")){
	JO.setId(0);
	JO.setJo_id("");
	JO.setUser_id("");
	JO.setJo_Sdate("");
	JO.setJo_Edate("");
	JO.setCr_id("");
	JO.setLo_id("");
	JO.setLs_id("");
	JO.setCs_id("");
	JO.setOp_Sdate("");
	JO.setOp_Edate("");
	nName = "新增";
} else {
	nName = "修改";
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><%=nName %>揪課</title>
</head>
<body>

<form action="JoinController" method="post">
<br/>
<input type="hidden" id="acttype" name="acttype" value="<%=action %>" />
<input type="hidden" id="acttype" name="id" value="${JO.id }" />
<table align="center">
	<tr>
		<td align="right">揪課編號:</td>
		<td><input type="text" id="jo_id" name="jo_id" value="${JO.jo_id }" />
			<img style="Display:none">
		</td>
	</tr>
	<tr>
		<td align="right">揪課發起人:</td>
		<td>
			<input type="text" id="user_id" name="user_id" value="${JO.user_id }" />
		</td>
	</tr>
	<tr>
		<td align="right">揪課時間_起:</td>
		<td>
			<input type="text" id="jo_Sdate" name="jo_Sdate" value="${JO.jo_Sdate }" />
		</td>
	</tr>
	<tr>
		<td align="right">揪課時間_訖:</td>
		<td>
			<input type="text" id="jo_Edate" name="jo_Edate" value="${JO.jo_Edate }" />
		</td>
	</tr>
	<tr>
		<td align="right">教室id:</td>
		<td>
			<input type="text" id="cr_id" name="cr_id" value="${JO.cr_id }" />
		</td>
	</tr>
	<tr>
		<td align="right">開課id:</td>
		<td>
			<input type="text" id="lo_id" name="lo_id" value="${JO.lo_id }" />
		</td>
	</tr>
	<tr>
		<td align="right">教室時刻id:</td>
		<td>
			<input type="text" id="ls_id" name="ls_id" value="${JO.ls_id }" />
		</td>
	</tr>
	<tr>
		<td align="right">開課時刻id:</td>
		<td>
			<input type="text" id="cs_id" name="cs_id" value="${JO.cs_id }" />
		</td>
	</tr>
	<tr>
		<td align="right">上課日期_起:</td>
		<td>
			<input type="text" id="op_Sdate" name="op_Sdate" value="${JO.op_Sdate }" />
		</td>
	</tr>
	<tr>
		<td align="right">上課日期_迄:</td>
		<td>
			<input type="text" id="op_Edate" name="op_Edate" value="${JO.op_Edate }" />
		</td>
	</tr>
	<tr>
		<td align="center" colspan="2">
			<input type="submit" value="<%=nName %>揪課"/>
		</td>
	</tr>
</table>
</form>

</body>
</html>